package com.atguigu.day01;

/**
 * @author sx
 * @date 2022-02-22 10:44
 */
public class Demo5 {
    public static void main(String[] args) {
        String str1 = "a" + 1 + 2;
        String str2 = String.valueOf('a' + 1 + 2);
        String str3 = 1 + 2 + "a";

        System.out.println("str1====="+str1);   //a12
        System.out.println("str2====="+str2);   //100
        System.out.println("str3====="+str3);   //3a
    }
}
